package com.zbbt.sportslottery.bean;

import java.util.ArrayList;
import java.util.List;

public class News {
	private int id;
	private long newsId;
	private String newsTitle;// 标题
	private String newsModel;// 摘要
	private long createAt;// 发布时间
	private int isTop;// 标是否置顶 1置顶。2不置顶
	private int imgType;// 1、原图 2、无图片 3、首页焦点新闻 4、小图 5、大图 6、图集
	private int news_flag;// 1热 2推荐 3专家
	private String newsUrl;// 详情地址
	private int programaId;// 所属栏目
	private int isShow;
	private int ishot;
	private ArrayList<NewsImg> newsImg;// 图片列表

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public int getIsShow() {
		return isShow;
	}

	public void setIsShow(int isShow) {
		this.isShow = isShow;
	}

	public long getNewsId() {
		return newsId;
	}

	public void setNewsId(long newsId) {
		this.newsId = newsId;
	}

	public String getNewsTitle() {
		return newsTitle;
	}

	public void setNewsTitle(String newsTitle) {
		this.newsTitle = newsTitle;
	}

	public String getNewsModel() {
		return newsModel;
	}

	public void setNewsModel(String newsModel) {
		this.newsModel = newsModel;
	}

	public long getCreateAt() {
		return createAt;
	}

	public void setCreateAt(long createAt) {
		this.createAt = createAt;
	}

	public int getIsTop() {
		return isTop;
	}

	public void setIsTop(int isTop) {
		this.isTop = isTop;
	}

	public int getImgType() {
		return imgType;
	}

	public void setImgType(int imgType) {
		this.imgType = imgType;
	}

	public int getNews_flag() {
		return news_flag;
	}

	public void setNews_flag(int news_flag) {
		this.news_flag = news_flag;
	}

	public String getNewsUrl() {
		return newsUrl;
	}

	public void setNewsUrl(String newsUrl) {
		this.newsUrl = newsUrl;
	}

	public int getProgramaId() {
		return programaId;
	}

	public void setProgramaId(int programaId) {
		this.programaId = programaId;
	}

	public ArrayList<NewsImg> getNewsImg() {
		return newsImg;
	}

	public void setNewsImg(ArrayList<NewsImg> newsImg) {
		this.newsImg = newsImg;
	}

	public void addImg(List<Object> findAll) {
		// TODO Auto-generated method stub
		if (findAll == null)
			return;
		if (newsImg == null) {
			newsImg = new ArrayList<NewsImg>();
		}
		for (int i = 0; i < findAll.size(); i++) {
			this.newsImg.add((NewsImg) findAll.get(i));
		}
	}

	public int getIshot() {
		return ishot;
	}

	public void setIshot(int ishot) {
		this.ishot = ishot;
	}

	@Override
	public String toString() {
		return "News [newsId=" + newsId + ", newsTitle=" + newsTitle + ", newsModel=" + newsModel + ", createAt=" + createAt + ", isTop=" + isTop + ", imgType=" + imgType + ", news_flag=" + news_flag
				+ ", newsUrl=" + newsUrl + ", programaId=" + programaId + ", newsImg=" + newsImg + "]";
	}
}
